package com.dongdongsongcan.app.view;

import android.content.Context;
import android.view.View;

import com.dongdongsongcan.app.control.bean.AddressData;

/**
 * Created by sfshine@qq.com on 2016/1/14 0014.
 */
public abstract class BaseViewItem<T> {
    protected Context mContext;

    public void BaseViewItem(Context context) {
        mContext = context;
    }

    protected View mContainer;

    public abstract void setInfo(T data);

    public View getView() {
        if (mContainer == null)
            return new View(mContext);
        return mContainer;
    }
}
